package fr.uvsq.isty.bdh.hchess.ics;

import fr.uvsq.isty.bdh.hchess.App;
import fr.uvsq.isty.bdh.hchess.interfacing.BadStateException;
import java.net.ProtocolException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Florent Hemmi <florent.hemmi@gmail.com>
 */
public class ICStest {
    
    private ICSclient ics;
    private ICSchessPlayer player;
    
    public static void main(String[] args) throws ProtocolException, BadStateException {
        ICSclient ics = new ICSclient(ICSclient.FICS, "freechess.org", "guest", "", 5000);
        ics.connect();
        ICSchessPlayer player = new ICSchessPlayer(ics);
        try {
            Thread.sleep(6000);
        } catch (InterruptedException ex) {
            Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
        }
        player.setUp(null);
        ics.disconnect();
    }
}
